<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/include.jsp"%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="img/favicon.png">

    <title></title>
  </head>

  <body>

        <table class="table table-striped table-bordered">
      <thead>
        <tr>
          <th >品牌</th>
          <th>商品编号</th>
          <th>商品名称</th>
          <th>规格</th>
          <th>单位</th>
          <th>单价</th>
          <th>备注</th>
        </tr>
      </thead>
          <tbody>
            <c:choose>
              <c:when test="${fn:length(list)>0 }">
                <c:forEach var="list" items="${list}" varStatus="status">
                  <tr class = "dataRow">
                    <td>${list.label}</td>
                    <td>${list.no}</td>
                    <td>${list.name}</td>
                    <td>${list.size}</td>
                    <td>${list.unit}</td>
                    <td>${list.cost}</td>
                    <td>${list.memo}</td>
                  </tr>
                </c:forEach>
              </c:when>
              <c:otherwise>
                <tr>
                  <td colspan="108" class="important">
                    暂无数据！
                  </td>
                </tr>
              </c:otherwise>
            </c:choose>
          </tbody>

        </table>
    

  </body>
</html>
